#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20250523.sql ./mysql/db
cp ../sql/ry_config_20250224.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../Spsy-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy Spsy-gateway "
cp ../Spsy-gateway/target/Spsy-gateway.jar ./ruoyi/gateway/jar

echo "begin copy Spsy-auth "
cp ../Spsy-auth/target/Spsy-auth.jar ./ruoyi/auth/jar

echo "begin copy Spsy-visual "
cp ../Spsy-visual/Spsy-monitor/target/Spsy-visual-monitor.jar  ./ruoyi/visual/monitor/jar

echo "begin copy Spsy-modules-system "
cp ../Spsy-modules/Spsy-system/target/Spsy-modules-system.jar ./ruoyi/modules/system/jar

echo "begin copy Spsy-modules-file "
cp ../Spsy-modules/Spsy-file/target/Spsy-modules-file.jar ./ruoyi/modules/file/jar

echo "begin copy Spsy-modules-job "
cp ../Spsy-modules/Spsy-job/target/Spsy-modules-job.jar ./ruoyi/modules/job/jar

echo "begin copy Spsy-modules-gen "
cp ../Spsy-modules/Spsy-gen/target/Spsy-modules-gen.jar ./ruoyi/modules/gen/jar

